export default defineAppConfig({
  pages: [
    'pages/Home/Home',
    'pages/Search/Search',
    'pages/CloudMap/CloudMap',
    'pages/Information/Information',
    'pages/Customization/Customization',
    'pages/User/Login/index',
    'pages/User/Register/index',
    'pages/User/Index/index',
  ],
  requiredBackgroundModes: ["location"],
  permission: {
    "scope.userLocation": {
      "desc": "是否允许获取你当前的地理位置信息？"
    }
  },
  "plugins": {
    "routePlan": {
      "version": "1.0.18",
      "provider": "wx50b5593e81dd937a"
    }
  },
  subPackages: [
    {
      root: "packageA",
      pages: [
        "pages/Food/Food",
        "pages/Scene/Scene",
        "pages/Stay/Stay",
        "pages/Outfit/Outfit"
      ]
    },
    {
      root: "packageB",
      pages: [
        "pages/Travel/Travel"
      ]
    },
    {
      root: "packageC",
      pages: [
        "pages/Upload/Upload",
        "pages/ChatRoom/ChatRoom"
      ]
    }
  ],
  tabBar: {
    color: '#000',
    selectedColor: '#000',
    list: [
      {
        pagePath: 'pages/Home/Home',
        text: "首页",
        iconPath: "assets/icon/home.png",
        selectedIconPath: "assets/icon/home-fill.png"
      },
      {
        pagePath: 'pages/Customization/Customization',
        text: "定制",
        iconPath: "assets/icon/customization.png",
        selectedIconPath: "assets/icon/customization-fill.png"
      },
      {
        pagePath: 'pages/CloudMap/CloudMap',
        text: "云图",
        iconPath: "assets/icon/cloud.png",
        selectedIconPath: "assets/icon/cloud-fill.png"
      },
      {
        pagePath: 'pages/Information/Information',
        text: "消息",
        iconPath: "assets/icon/info.png",
        selectedIconPath: "assets/icon/info-fill.png"
      },
      {
        pagePath: 'pages/User/Index/index',
        text: "我的",
        iconPath: "assets/icon/my.png",
        selectedIconPath: "assets/icon/my-fill.png"
      }
    ]
  },
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black'
  }
})
